-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate pallet-mixnet to umbrella crate #6986
migrate pallet-mixnet to umbrella crate #6986
Conversation
Part of #6504 |
Co-authored-by: Dónal Murray <[email protected]>
Co-authored-by: Dónal Murray <[email protected]>
Co-authored-by: Dónal Murray <[email protected]>
Co-authored-by: Dónal Murray <[email protected]>
@@ -168,12 +163,9 @@ fn twox<BlockNumber: UniqueSaturatedInto<u64>>( | |||
// The pallet | |||
//////////////////////////////////////////////////////////////////////////////// | |||
|
|||
#[frame_support::pallet(dev_mode)] | |||
#[frame::pallet(dev_mode)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dev_mode
is not really good for production as well 🙈 not in scope for now, but should be removed later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, will have to dig in the code to understand why but we could create an issue for it if there's isn't one already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think this is just because I never got around to adding weights.
Review required! Latest push from author must always be reviewed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
f3ab385
# Description Migrate pallet-mixnet to use umbrella crate whilst adding a few types and traits in the frame prelude that are used by other pallets as well. ## Review Notes * This PR migrates `pallet-mixnet` to use the umbrella crate. * Note that some imports like `use sp_application_crypto::RuntimeAppPublic;` and imports from `sp_mixnet::types::` have not been migrated to the umbrella crate as they are not used in any / many other places and are relevant only to the `pallet-mixnet`. * Transaction related helpers to submit transactions from `frame-system` have been added to the main `prelude` as they have usage across various pallets. ```Rust pub use frame_system::offchain::*; ``` * Exporting `arithmetic` module in the main `prelude` since this is used a lot throughout various pallets. * Nightly formatting has been applied using `cargo fmt` * Benchmarking dependencies have been removed from`palet-mixnet` as there is no benchmarking.rs present for `pallet-mixnet`. For the same reason, `"pallet-mixnet?/runtime-benchmarks"` has been removed from `umbrella/Cargo.toml`. --------- Co-authored-by: Dónal Murray <[email protected]>
Description
Migrate pallet-mixnet to use umbrella crate whilst adding a few types and traits in the frame prelude that are used by other pallets as well.
Review Notes
pallet-mixnet
to use the umbrella crate.use sp_application_crypto::RuntimeAppPublic;
and imports fromsp_mixnet::types::
have not been migrated to the umbrella crate as they are not used in any / many other places and are relevant only to thepallet-mixnet
.frame-system
have been added to the mainprelude
as they have usage across various pallets.arithmetic
module in the mainprelude
since this is used a lot throughout various pallets.cargo fmt
palet-mixnet
as there is no benchmarking.rs present forpallet-mixnet
. For the same reason,"pallet-mixnet?/runtime-benchmarks"
has been removed fromumbrella/Cargo.toml
.